import "babel-polyfill";
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './index.less';
import Content from './router';
import registerServiceWorker from './registerServiceWorker';
import {
    BrowserRouter,
    Route,
    Switch,
    hashHistory,
    IndexRoute,
    Redirect,
    Link,
} from 'react-router-dom';
import { Provider, connect } from 'react-redux'
import store from './store/index.js'


var cont = (
    <Provider store={store}>
        <BrowserRouter>
            <Content />
        </BrowserRouter>
    </Provider>
)

ReactDOM.render(cont, document.getElementById('root'));
registerServiceWorker();

export default store